package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.BizContractDetailMapper;
import com.crm.model.BizContractDetail;
import com.crm.service.BizContractDetailService;
import com.crm.util.UUIDUtil;

@Service
public class BizContractDetailServiceImpl extends BaseServiceImpl<BizContractDetail> implements BizContractDetailService{

	@Autowired
	private BizContractDetailMapper bizContractDetailMapper;
	
	@Override
	@Transactional
	public int insert(BizContractDetail record) {
		String uuid = UUIDUtil.getUUID();
		record.setContractDetailId(uuid);
		return super.insert(record);
	}

	@Override
	public List<BizContractDetail> selectByUsForSchool(BizContractDetail record) {
		// TODO Auto-generated method stub
		return bizContractDetailMapper.selectByUsForSchool(record);
	}
}
